<?php



class FunrSpoxfunMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.FunrSpoxfunMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('funr_spoxfun');
		$tMap->setPhpName('FunrSpoxfun');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('GENR_FUNDACION_ID', 'GenrFundacionId', 'int' , CreoleTypes::INTEGER, 'genr_fundacion', 'GENR_FUNDACION_ID', true, null);

		$tMap->addForeignPrimaryKey('FUNM_SPONSOR_ID', 'FunmSponsorId', 'int' , CreoleTypes::INTEGER, 'funm_sponsor', 'FUNM_SPONSOR_ID', true, null);

		$tMap->addColumn('FUNSXF_VALOR', 'FunsxfValor', 'double', CreoleTypes::DECIMAL, false, 10);

		$tMap->addColumn('FUNSXF_ANIO', 'FunsxfAnio', 'int', CreoleTypes::DATE, false, null);

	} 
} 